<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<h3>注册信息</h3>
<span th:text="${message}" style="display:inline;color:red;"></span>
<form action="register" th:object="${UserB}" method="post">
<p><label>用户ID:</label><input name="userid" type="text"/></p>
<p><label>用户名:</label><input name="username" type="text"/></p>
<p><label>密码:</label><input name="password" type="password"/></p>
<p><label>确认密码:</label><input name="repassword" type="password"/></p>
<p><input type="submit" name="register" value="注册" /></p>
<p><input type="submit" name="back" value="返回" /></p>
</form>
</body>
</html>